<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>reset</title>
</head>
<body>
<form id="login_tab" action="/Home/Login/resetPassword" method="post">
    <span>原密码：</span><input type="password" name="passwordold"/><br/>
    <span>新密码：</span><input type="password" name="password"/><br/>
    <span>重复密码：</span><input type="password" name="repeatpassword"/><br/>
    <span>验证码：</span><input type="text" name="img_code"/><img src="/Home/Login/imgCode" id="login_img_code" class="change_img"><span class="change_img">换个验证码</span><br/>
    {!! csrf_field() !!}
    <input type="submit"/>
</form>
<script>
    $(function(){
        $('.change_img').click(function(){
            $("#login_img_code").attr('src','/Home/Login/imgCode?q='+Math.random())
        })
    })
</script>
</body>
</html>